/**
 * 自定义Api异常
 */
class ApiError extends Error{

    /**
     * 构造方法
     */
    constructor(error_name){
        super();

        var error_info = ApiErrorNames.getErrorInfo(error_name);

        this.name = error_name;
        this.code = error_code;
        this.message = error_message;
    }

}

module.exports = ApiError;
